package Pojo;

import java.util.Objects;

//主菜单实体类
public class Menu {
    private Integer menu_id;//主菜单id（主键）
    private String menu_name;//主菜单名称

    public Menu() {
    }

    public Menu(Integer menu_id, String menu_name) {
        this.menu_id = menu_id;
        this.menu_name = menu_name;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menu_id=" + menu_id +
                ", menu_name='" + menu_name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Menu menu = (Menu) o;
        return Objects.equals(menu_id, menu.menu_id) &&
                Objects.equals(menu_name, menu.menu_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(menu_id, menu_name);
    }

    public Integer getMenu_id() {
        return menu_id;
    }

    public void setMenu_id(Integer menu_id) {
        this.menu_id = menu_id;
    }

    public String getMenu_name() {
        return menu_name;
    }

    public void setMenu_name(String menu_name) {
        this.menu_name = menu_name;
    }
}
